package rlex.classes;
import java.util.ArrayList;
import java.util.List;


public class TokenList {
	
	private List<Token> tokens = new ArrayList<Token>();

	public void addToken(Token newtoken) {
		for (Token token : tokens) {
			//if (!token.getName().equals(newtoken)) {
				tokens.add(newtoken);
			//}
		}
	}
		
	public void listToken() {
		for (Token token : tokens) {
			System.out.println("token: "+token.getName()+" - "+token.getType());				
		}
	}
}
